package com.autumn.platform.auth.boot;

import org.springframework.boot.context.properties.ConfigurationProperties;

import com.autumn.platform.core.boot.CoreProperties;

@ConfigurationProperties(prefix = AuthProperties.PREFIX)
public class AuthProperties {

    public static final String PREFIX = CoreProperties.AUTO_CONFIG_PROPERTIES_PREFIX + ".auth";

    /**
     * 是否启用鉴权
     */
    private boolean enabled;

    /**
     * 无需鉴权的请求URL模式，以逗号分隔多个模式
     */
    private String ignoreUrlPatterns;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public String getIgnoreUrlPatterns() {
        return ignoreUrlPatterns;
    }

    public void setIgnoreUrlPatterns(String ignoreUrlPatterns) {
        this.ignoreUrlPatterns = ignoreUrlPatterns;
    }
}
